/**
 * 错误码定义
 */
package com.bys.ots.pojo;

/**
 * @author bairuihua
 * 2019/11/25
 */

public enum ResultEnum
{

    CODE_400("400", "邮箱为空"),
    CODE_401("401", "验证码发送失败"),
    CODE_402("402", "用户名或密码错误"),
    CODE_403("403", "验证码不正确"),
    CODE_404("404", "用户未注册"),
    CODE_405("405", "该openId已被注册！"),
    CODE_406("406", "订单编号为空"),
    CODE_407("407", "用户名密码不正确"),
    CODE_408("408", "物流信息异常"),
    CODE_409("409", "rowData参数不正确"),
    CODE_410("410", "userId为空"),
    CODE_411("411", "用户不存在"),
    CODE_412("412", "用户未注册"),
    CODE_413("413", "JSON格式错误"),
    CODE_414("414", "pageNum为空"),
    CODE_415("415", "pageSize为空"),
    CODE_416("416", "type参数错误"),
    CODE_419("419", "s0参数错误"),
    CODE_417("417", "密码错误"),
    CODE_418("418", "soItem为空"),
    CODE_420("420", "订单状态为空"),
    CODE_421("421", "用户注册失败！"),
    CODE_422("422", "邮箱解绑失败！"),
    CODE_423("423", "用户信息修改失败！"),
    CODE_424("424", "物流信息为空！"),
    CODE_425("425", "邮箱已注册"),
    CODE_426("426", "反馈失败"),
    CODE_427("427", "未知错误"),
    CODE_428("428", "接口没有返回任何信息"),
    CODE_429("429", "openId为空"),
    CODE_430("430", "添加邮箱权限不够"),
    CODE_431("431", "您已添加过该邮箱"),
    CODE_432("432", "该订单没有销售email绑定"),
    CODE_433("433", "每天只能催促一次"),
    SUCCESS("200", "ok");

    private String code;

    private String msg;

    ResultEnum(String code, String msg)
    {
        this.code = code;
        this.msg = msg;
    }

    public String getCode()
    {
        return code;
    }

    public void setCode(String code)
    {
        this.code = code;
    }

    public String getMsg()
    {
        return msg;
    }

    public void setMsg(String msg)
    {
        this.msg = msg;
    }
}
